package utils

import (
	"unsafe"
	"strconv"
)
//字符串转int64
//func StrToInt(str string) int
func StrToIntLong(str string) int64  {

	value_int64,_ := strconv.ParseInt(str,10,64)
	value_int := *(*int64)(unsafe.Pointer(&value_int64))
	//value_int := *(*int)(unsafe.Pointer(&value_int64))
	return value_int
}

func StrToInt(str string) int  {

	value_int64,_ := strconv.ParseInt(str,10,64)
	value_int := *(*int)(unsafe.Pointer(&value_int64))
	//value_int := *(*int)(unsafe.Pointer(&value_int64))
	return value_int
}
